Skip to content

Plugin Deactivation mod (wingup part) - #107

Open
bms-2015 wants to merge 4 commits into
notepad-plus-plus:masterfrom
bms-2015:plugin-deactivation
Open

Plugin Deactivation mod (wingup part)#107
bms-2015 wants to merge 4 commits into
notepad-plus-plus:masterfrom
bms-2015:plugin-deactivation

Conversation

@bms-2015

@bms-2015 bms-2015 commented Jul 13, 2026

Copy link
Copy Markdown

Plugin Deactivation mod (wingup part)

🎞️ Watch the video of the mod in action

  • By clicking the Deactivate button in the Installed Plugins panel, plugins can be moved to the ...\Notepad++\plugins\disabled folder using the standard method by restarting the program using a modified gup.
  • By clicking the Activate button in the Deactivated Plugins panel, plugins can be moved back to the ...\Notepad++\plugins folder using the standard method by restarting the program using a modified gup.
  • The disabled subfolder is excluded from plugin scanning, so deactivated plugins are never accidentally loaded.
  • The program continues to track updates of deactivated plugins.
  • The program retrieves plugin descriptions similar to the Installed Plugins tab.
  • The standard lists for displaying, searching, and multi-selecting plugins in the tab have been recreated.
  • Existing plugin folders at the destination are overwritten automatically on deactivate/activate — the checkbox selection already made by the user in the UI serves as confirmation, no extra prompt is shown.
  • Added a Delete button to the Incompatible Plugins tab, which deletes plugins using the standard method of restarting the program using a modified gup. In this case, restarting is unnecessary, but this was done to ensure a consistent user experience.
  • Added elements are now translated into Russian and English, with the ability to further translate them using the standard XML translation files.
  • Modified files
    Notepad-plus-plus repository:
    PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.h
    PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp
    PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.rc
    PowerEditor/src/WinControls/PluginsAdmin/pluginsAdminRes.h
    PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp
    PowerEditor/src/localization.cpp
    PowerEditor/installer/nativeLang/russian.xml
    PowerEditor/installer/nativeLang/english.xml
    wingup repository:
    src/winmain.cpp

bms-2015 and others added 3 commits July 13, 2026 02:22
@bms-2015 bms-2015 changed the title Plugin Deactivation mod Plugin Deactivation mod (wingup) Jul 13, 2026
@bms-2015 bms-2015 changed the title Plugin Deactivation mod (wingup) Plugin Deactivation mod (wingup part) Jul 13, 2026
@bms-2015

bms-2015 commented Jul 27, 2026

Copy link
Copy Markdown
Author

@donho @chcg
Hello, I would like to kindly ask you to review my related PRs:

These two PRs are connected as part of the Plugin Deactivation mod.
Could you please take a look at the Wingup PR when you have time?
Thank you very much!

@donho donho left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow the suggestions.

Comment thread src/winmain.cpp
-deactivate : Move the given plugin folders from SRC_ROOT (plugins dir)\r\n\
to DEST_ROOT (plugins_disabled dir).\r\n\
-activate : Move the given plugin folders from SRC_ROOT (plugins_disabled dir)\r\n\
back to DEST_ROOT (plugins dir).\r\n\

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current format should be followed.
Also it should be as simpler as possible: -moveFolder can replace both -activate & -deactivate.
My suggestion is:

Move folder mode:\r\n\
\r\n\
gup -moveFolder APP_PATH SRC_ROOT DEST_ROOT folderName1 [folderName2 ...]\r\n\

\r\n\
    -moveFolder: Move the given folder names from SRC_ROOT to DEST_ROOT.\r\n\
    APP_PATH: application path to launch after the operation.\r\n\

Comment thread src/winmain.cpp
}

auto lenFrom = fFrom.length();
wchar_t* actionFrom = new wchar_t[lenFrom + 2];

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use std::make_unique instead of new.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants